/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pagoda.util;

/**
 *
 * @author Kevin Krohe
 */
public class StringUtil {

    public static boolean IsNullOrEmpty(String str)
    {
        if(str == null)
            return true;
        if(str.isEmpty())
            return true;
        return false;
    }

    public static String IfNullOrEmpty(String str, String defaultStr)
    {
        if(IsNullOrEmpty(str))
            return defaultStr;
        return str;
    }
}
